<div class='fui-page fui-page-current member-log-page'>
    <div class='fui-content' >
		<div class="fui-tab fui-tab-success">
			<a ng-class="{'active':pagedata.params.type==0}" class="external" href="javascript:;" ng-click="pagedata.params.type=0;tool.get_list('jy_shopbaoxiu/store.grouprank/list/',true)">下单量排行</a>
			<a ng-class="{'active':pagedata.params.type==1}" class="external" href="javascript:;" ng-click="pagedata.params.type=1;tool.get_list('jy_shopbaoxiu/store.grouprank/list/',true)">业绩排行</a>
		</div>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
        </div>
        <div class='fui-list-group container' ng-show="pagedata.list.length>0" >
			<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
				<div class="fui-list-media">
					<img src="../core/resource/images/gw-user.png"/>
					<div class="title">{{item.name || item.member.nickname}}</div>
				</div>
				<div class="fui-list-inner">
					<div ng-if="pagedata.params.type==0" class='title'>
						下单量：
						<span class="red" style="margin-left:0.3rem">{{item.order_num}}</span>个
					</div>
					<div ng-if="pagedata.params.type==1" class='title'>
						业绩：
						<span class="red" style="margin-left:0.3rem">￥{{item.total_price || 0.00}}</span>
					</div>
				</div>
				<div class='fui-list-angle'>第
					<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{$index+1}}</span>
					名
				</div>
			</div>
		</div>
    </div>
</div>
<div ng-include="sys_html('/store/_footer')"></div>
<script>
scope.tool.get_list('jy_shopbaoxiu/store.grouprank/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_shopbaoxiu/store.grouprank/list/');
}
</script>